﻿using System;
using System.Web.Mvc;
using Edu.Web.Data.Entity;
using Edu.Web.Data.Service;

namespace Edu.Web.Controllers
{
    public class DefaultController : Controller
    {
        private readonly IUserService _userSvc;
        public DefaultController(IUserService userSvc)
        {
            _userSvc = userSvc;
        }

        // GET: Default
        public ActionResult Index()
        {
            UserEntity user = _userSvc.Add(new UserEntity { UserName="123",UserPassword="123456",CreateTime=DateTime.Now,Gender=1,UserType=1});
            return View();
        }
    }
}